#ifndef AUDIO_H
#define AUDIO_H

#include <string>
#include <map>

#include <SDL_Mixer.h>

typedef std::map<std::string, Mix_Chunk*> soundslist;

class Audio
{
	soundslist m_sounds;
	Mix_Music *music;

	Audio();
	~Audio();

	void load( const std::string& file );

public:
	static Audio& getInstance()
	{
		static Audio instance;
		return instance;
	}

	void play( const std::string& file );
	void playMusic();
};

#endif